package com.qcu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName archive
 */
@TableName(value ="archive")
public class Archive implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 
     */
    private String inhabitantId;

    /**
     * 
     */
    private Integer staffId;

    /**
     * 
     */
    private String sugar;

    /**
     * 
     */
    private String pressure;

    /**
     * 
     */
    private String height;

    /**
     * 
     */
    private String weight;

    /**
     * 
     */
    private String vision;

    /**
     * 
     */
    private String result;

    /**
     * 
     */
    private Date createdAt;

    /**
     * 
     */
    private Date updatedAt;

    private String wait1;
    private String wait2;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public String getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getInhabitantId() {
        return inhabitantId;
    }

    /**
     * 
     */
    public void setInhabitantId(String inhabitantId) {
        this.inhabitantId = inhabitantId;
    }

    /**
     * 
     */
    public Integer getStaffId() {
        return staffId;
    }

    /**
     * 
     */
    public void setStaffId(Integer staffId) {
        this.staffId = staffId;
    }

    /**
     * 
     */
    public String getSugar() {
        return sugar;
    }

    /**
     * 
     */
    public void setSugar(String sugar) {
        this.sugar = sugar;
    }

    /**
     * 
     */
    public String getPressure() {
        return pressure;
    }

    /**
     * 
     */
    public void setPressure(String pressure) {
        this.pressure = pressure;
    }

    /**
     * 
     */
    public String getHeight() {
        return height;
    }

    /**
     * 
     */
    public void setHeight(String height) {
        this.height = height;
    }

    /**
     * 
     */
    public String getWeight() {
        return weight;
    }

    /**
     * 
     */
    public void setWeight(String weight) {
        this.weight = weight;
    }

    /**
     * 
     */
    public String getVision() {
        return vision;
    }

    /**
     * 
     */
    public void setVision(String vision) {
        this.vision = vision;
    }

    /**
     * 
     */
    public String getResult() {
        return result;
    }

    /**
     * 
     */
    public void setResult(String result) {
        this.result = result;
    }

    /**
     * 
     */
    public Date getCreatedAt() {
        return createdAt;
    }

    /**
     * 
     */
    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    /**
     * 
     */
    public Date getUpdatedAt() {
        return updatedAt;
    }

    /**
     * 
     */
    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Archive other = (Archive) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getInhabitantId() == null ? other.getInhabitantId() == null : this.getInhabitantId().equals(other.getInhabitantId()))
            && (this.getStaffId() == null ? other.getStaffId() == null : this.getStaffId().equals(other.getStaffId()))
            && (this.getSugar() == null ? other.getSugar() == null : this.getSugar().equals(other.getSugar()))
            && (this.getPressure() == null ? other.getPressure() == null : this.getPressure().equals(other.getPressure()))
            && (this.getHeight() == null ? other.getHeight() == null : this.getHeight().equals(other.getHeight()))
            && (this.getWeight() == null ? other.getWeight() == null : this.getWeight().equals(other.getWeight()))
            && (this.getVision() == null ? other.getVision() == null : this.getVision().equals(other.getVision()))
            && (this.getResult() == null ? other.getResult() == null : this.getResult().equals(other.getResult()))
            && (this.getCreatedAt() == null ? other.getCreatedAt() == null : this.getCreatedAt().equals(other.getCreatedAt()))
            && (this.getUpdatedAt() == null ? other.getUpdatedAt() == null : this.getUpdatedAt().equals(other.getUpdatedAt()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getInhabitantId() == null) ? 0 : getInhabitantId().hashCode());
        result = prime * result + ((getStaffId() == null) ? 0 : getStaffId().hashCode());
        result = prime * result + ((getSugar() == null) ? 0 : getSugar().hashCode());
        result = prime * result + ((getPressure() == null) ? 0 : getPressure().hashCode());
        result = prime * result + ((getHeight() == null) ? 0 : getHeight().hashCode());
        result = prime * result + ((getWeight() == null) ? 0 : getWeight().hashCode());
        result = prime * result + ((getVision() == null) ? 0 : getVision().hashCode());
        result = prime * result + ((getResult() == null) ? 0 : getResult().hashCode());
        result = prime * result + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
        result = prime * result + ((getUpdatedAt() == null) ? 0 : getUpdatedAt().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", inhabitantId=").append(inhabitantId);
        sb.append(", staffId=").append(staffId);
        sb.append(", sugar=").append(sugar);
        sb.append(", pressure=").append(pressure);
        sb.append(", height=").append(height);
        sb.append(", weight=").append(weight);
        sb.append(", vision=").append(vision);
        sb.append(", result=").append(result);
        sb.append(", createdAt=").append(createdAt);
        sb.append(", updatedAt=").append(updatedAt);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}